(function () {
    'use strict';
    var global = tinymce.util.Tools.resolve('tinymce.PluginManager');

    var register$1 = function (editor) {
      editor.ui.registry.addIcon('zycapture', '<svg t="1735785047817" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1989" width="16" height="16"><path d="M803.542226 582.056718A218.871245 218.871245 0 0 0 655.70814 639.974401l-107.835687-153.593856 305.587777-436.142555A31.99872 31.99872 0 0 0 801.622303 13.75945l-292.468301 415.98336L216.045726 13.75945a31.99872 31.99872 0 0 0-52.477901 36.47854l305.907764 435.50258-104.635815 149.114036a221.111156 221.111156 0 1 0 43.198272 49.918003l100.795969-143.354266 105.275789 149.75401a219.831207 219.831207 0 1 0 189.752409-109.115635zM221.805496 958.041678a156.153754 156.153754 0 1 1 156.153754-155.833766 156.153754 156.153754 0 0 1-156.153754 155.833766z m581.73673 0a156.153754 156.153754 0 1 1 156.153754-155.833766 156.153754 156.153754 0 0 1-156.153754 155.833766z" fill="" p-id="1990"></path></svg>');
      editor.ui.registry.addButton('zycapture', {
        text: '截屏',
        icon: 'zycapture',
        tooltip: '截屏（zyCapture）',
        onAction: function () {
          zyCapture.setEditor(editor).Capture2();
        }
      });
      editor.ui.registry.addMenuItem('zycapture', {
        text: '截屏（zyCapture）',
        icon: 'zycapture',
        tooltip: '截屏（zyCapture）',
        onAction: function () {
          zyCapture.setEditor(editor).Capture2();
        }
      });
    };
    var Buttons = { register: register$1 };
    function Plugin () {
      global.add('zycapture', function (editor) {        
        Buttons.register(editor);
      });
    }
    Plugin();
}());